package com.Java.train.business.service;

import com.Java.train.common.response.CommonResp;
import com.Java.train.business.entity.Train;
import com.baomidou.mybatisplus.extension.service.IService;
import com.Java.train.common.response.PageResp;
import com.Java.train.business.entity.DTO.TrainDTO;
import com.Java.train.business.req.TrainQueryReq;
import java.util.List;

/**
* @author luomoxingchen
* @since 2024-09-22
*/
public interface TrainService extends IService<Train> {

    /**
    * Train详情
    * @param
    * @return
    */
    PageResp<TrainDTO> queryList(TrainQueryReq trainQueryReq);

    /**
    * Train保存和修改
    * @param train 根据需要进行传值
    * @return
    */
    CommonResp<Object> modify(Train train);

    /**
    * Train删除
    * @param ids
    * @return
    */
    CommonResp<Object> remove(String ids);

    List<TrainDTO> queryAll();

}


